-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mongo via memory #3
base: master
Are you sure you want to change the base?
Conversation
tests/api/v1/tables.test.js
Outdated
afterEach(() => { | ||
server.close(); | ||
}); | ||
|
||
describe('tables', () => { | ||
describe('#index', () => { | ||
test('returns all tables', async () => { | ||
const firstTable = await Table.create({ | ||
"name": "First table", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name" -> name ✂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thame same for other keys
package.json
Outdated
@@ -4,7 +4,7 @@ | |||
"description": "", | |||
"main": "index.js", | |||
"scripts": { | |||
"test": "jest", | |||
"test": "MONGODB_URI=mongodb://localhost:27017/lemme-api jest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this env? I saw that this uri is hardcoded inside tests/globalConfig.json
d68b2c2
to
dabd373
Compare
Tasks:
./database
via jest